<%
nguoi_dung = nguoi_dung_hien_tai
%>
<ul class="nav nav-tabs">
	<% if nguoi_dung.is_admin %>
	<li class="<%= params[:action] == "index" && params[:controller] == "admin/main" ? "active" : ""%>">
		<a href="<%= url_for :controller => "admin/main" %>">
			<%= t 'bang_quan_tri'%>
		</a>
	</li>
	<% end %>
	<li class="<%= params[:danh_muc] == "ca_phe" && params[:controller] == "admin/san_pham" ? "active" : ""%>">
		<a href="<%= url_for :controller => "admin/san_pham", :danh_muc => "ca_phe" %>">
			<%= t 'ca_phe'%>
		</a>
	</li>
	<li class="<%= params[:danh_muc] == "giai_khat" && params[:controller] == "admin/san_pham" ? "active" : ""%>">
		<a href="<%= url_for :controller => "admin/san_pham", :danh_muc => "giai_khat" %>">
			<%= t 'giai_khat'%>
		</a>
	</li>
	<li class="<%= params[:danh_muc] == "thuc_an_nhe" && params[:controller] == "admin/san_pham" ? "active" : ""%>">
		<a href="<%= url_for :controller => "admin/san_pham", :danh_muc => "thuc_an_nhe" %>">
			<%= t 'thuc_an_nhe'%>
		</a>
	</li>
	<li class="<%= params[:danh_muc] == "blog_ca_phe" && params[:controller] == "admin/bai_viet" ? "active" : ""%>">
		<a href="<%= url_for :controller => "admin/bai_viet", :danh_muc => "blog_ca_phe" %>">
			<%= t 'blog_ca_phe'%>
		</a>
	</li>
	<li class="<%= params[:danh_muc] == "tin_qcafe" && params[:controller] == "admin/bai_viet" ? "active" : ""%>">
		<a href="<%= url_for :controller => "admin/bai_viet", :danh_muc => "tin_qcafe"  %>">
			<%= t 'tin_qcafe'%>
		</a>
	</li>
	<% if nguoi_dung.is_admin %>
	<li class="<%= params[:controller] == "admin/gio_hang" ? "active" : "" %>">
		<a href="<%= url_for :controller => "admin/gio_hang"%>">
			<%= t 'cac_don_hang'%>
		</a>
	</li>
	<li class="<%= params[:controller] == "admin/nguoi_dung" ? "active" : ""%>">
		<a href="<%= url_for :action => "index", :controller => "nguoi_dung" %>">
			<%= t 'nguoi_dung'%>
		</a>
	</li>
	<% end %>
	<li>
		<a href="<%= url_for :action => "upload", :controller => "main" %>" target="_blank">
			<%= t 'cac_anh_da_upload'%>
		</a>
	</li>
</ul>